package com.ruyuan.user.server.controller.request;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @author xx
 */
@Data
public class SaveFunctionResourceRequest implements Serializable {
    private static final long serialVersionUID = 6189648072332393946L;

    private Long resourceId;

    @NotEmpty(message = "资源名称不能为空")
    private String name;

    private String icon;

    @NotEmpty(message = "资源类型不能为空")
    private String resourceType;

    @NotEmpty(message = "资源编码不能为空")
    private String code;

    private String description;

    private String parentCode;

    private Integer priority;

    private Boolean enable;

    private String url;
}
